package td.pt;

import td.pt.ui.CategoryListingEntry;

import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RadioButton;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.ViewImpl;

public class CategoryView extends ViewImpl implements CategoryPresenter.MyView {

	private final Widget widget;

	public interface Binder extends UiBinder<Widget, CategoryView> {
	}

	@UiField
	Label pageTitle;

	@UiField
	RadioButton topRead;
	@UiField
	RadioButton topTaggings;
	@UiField
	RadioButton topReferenced;

	@UiField
	CategoryListingEntry category1;

	@UiField
	CategoryListingEntry category2;

	@UiField
	CategoryListingEntry category3;

	@UiField
	CategoryListingEntry category4;

	@UiField
	CategoryListingEntry category5;

	@UiField
	CategoryListingEntry category6;

	@Inject
	public CategoryView(final Binder binder) {
		widget = binder.createAndBindUi(this);
	}

	@Override
	public Widget asWidget() {
		return widget;
	}

	public Label getPageTitle() {
		return pageTitle;
	}

	public RadioButton getTopRead() {
		return topRead;
	}

	public RadioButton getTopTaggings() {
		return topTaggings;
	}

	public RadioButton getTopReferenced() {
		return topReferenced;
	}

	public CategoryListingEntry getCategory1() {
		return category1;
	}

	public CategoryListingEntry getCategory2() {
		return category2;
	}

	public CategoryListingEntry getCategory3() {
		return category3;
	}

	public CategoryListingEntry getCategory4() {
		return category4;
	}

	public CategoryListingEntry getCategory5() {
		return category5;
	}

	public CategoryListingEntry getCategory6() {
		return category6;
	}

}
